﻿<%@ Page Title="" Language="C#" MasterPageFile="~/BizUserMaster.Master" AutoEventWireup="true" CodeBehind="ListingsAdDetails.aspx.cs" Inherits="BizUser.ListingAdDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style18 {
            width: 164px;
        }
        .auto-style22 {
            width: 164px;
            height: 59px;
        }
        .auto-style27 {
            width: 164px;
            height: 26px;
        }
        .auto-style30 {
            width: 187px;
            height: 26px;
        }
        .auto-style33 {
            width: 192px;
        }
        .auto-style34 {
            width: 192px;
            height: 59px;
        }
        .auto-style36 {
            width: 164px;
            text-decoration: underline;
        }
        .auto-style40 {
            height: 26px;
            width: 27px;
        }
        .auto-style42 {
            height: 26px;
            width: 31px;
        }
        .auto-style44 {
            height: 26px;
            width: 97px;
        }
        .auto-style46 {
            width: 27px;
        }
        .auto-style51 {
            width: 31px;
        }
        .auto-style54 {
            height: 26px;
            width: 85px;
        }
        .auto-style55 {
            width: 85px;
        }
        .auto-style65 {
            width: 97px;
        }
        .auto-style66 {
            width: 187px;
        }
        .auto-style67 {
            width: 102px;
        }
        .auto-style68 {
            height: 26px;
            width: 102px;
        }
        .auto-style69 {
            height: 26px;
            width: 37px;
        }
        .auto-style70 {
            width: 164px;
            height: 30px;
        }
        .auto-style71 {
            width: 102px;
            height: 30px;
        }
        .auto-style72 {
            width: 245px;
            height: 30px;
        }
        .auto-style73 {
            width: 187px;
            height: 30px;
        }
        .auto-style74 {
            width: 85px;
            height: 30px;
        }
        .auto-style75 {
            width: 31px;
            height: 30px;
        }
        .auto-style76 {
            width: 97px;
            height: 30px;
        }
        .auto-style77 {
            width: 27px;
            height: 30px;
        }
        .auto-style78 {
            width: 245px;
        }
        .auto-style79 {
            height: 26px;
            width: 245px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    <asp:HiddenField ID="hiddenBizID" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator" runat="server" ControlToValidate="txtTitle" ErrorMessage="RequiredFieldValidator" ValidationGroup="NotEmpty"></asp:RequiredFieldValidator>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:conBizUser %>" SelectCommand="GetBizInfo">
        <SelectParameters>
            <asp:Parameter Name="prmBizID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:Panel ID="PanelAdDetails" runat="server">
        <table style="width: 134%; height: 69px;" frame="box">
        <tr>
            <td class="auto-style36"><strong>2. Give Ad Details</strong></td>
            <td class="auto-style67" colspan="3">
                &nbsp;</td>
            <td class="auto-style78">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style18">Listing ID</td>
            <td class="auto-style67" colspan="3">
                <asp:TextBox ID="txtListingId" runat="server"></asp:TextBox>
            </td>
            <td class="auto-style78">&nbsp;</td>
        </tr>
             <tr>
            <td class="auto-style18">Title*</td>
            <td class="auto-style67" colspan="3">
                <asp:TextBox ID="txtTitle" runat="server" Width="212px" ValidationGroup="NotEmpty"></asp:TextBox>
            </td>
            <td class="auto-style78">
                <asp:RequiredFieldValidator ID="vldRqdTitle" runat="server" ControlToValidate="txtTitle" ErrorMessage="Please enter title"></asp:RequiredFieldValidator>
                 </td>
        </tr>
        <tr>
            <td class="auto-style18">Business Type</td>
            <td class="auto-style67" colspan="3">
                <asp:TextBox ID="txtBusinessType" runat="server" ValidationGroup="NotEmpty"></asp:TextBox>
            </td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">&nbsp;</td>
            <td class="auto-style55">&nbsp;</td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style27">Asking Price Low</td>
            <td class="auto-style68" colspan="3">
                <asp:TextBox ID="txtAskPriceLow" runat="server" TextMode="Number"></asp:TextBox>
            </td>
            <td class="auto-style79">
                <asp:CompareValidator ID="vldCmpAskPrice" runat="server" ControlToCompare="txtAskPriceHigh" ControlToValidate="txtAskPriceLow" ErrorMessage="Please enter correct ask prices" Operator="LessThan"></asp:CompareValidator>
            </td>
            <td class="auto-style30">Asking Price High</td>
            <td class="auto-style54">
                <asp:TextBox ID="txtAskPriceHigh" runat="server" TextMode="Number"></asp:TextBox>
            </td>
            <td class="auto-style42"></td>
            <td class="auto-style44"></td>
            <td class="auto-style40"></td>
        </tr>
        <tr>
            <td class="auto-style18">Gross Income</td>
            <td class="auto-style67" colspan="3">
                <asp:TextBox ID="txtGrossIncome" runat="server" TextMode="Number"></asp:TextBox>
            </td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">Cash Flow</td>
            <td class="auto-style55">
                <asp:TextBox ID="txtCashFlow" runat="server" TextMode="Number"></asp:TextBox>
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">EBITDA</td>
            <td class="auto-style46">
                <asp:TextBox ID="txtEBITDA" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style18">Furniture and Fixtures</td>
            <td class="auto-style67" colspan="3">
                <asp:TextBox ID="txtFurnitureFixtures" runat="server" TextMode="Number"></asp:TextBox>
            </td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">Inventory</td>
            <td class="auto-style55">
                <asp:TextBox ID="txtInventory" runat="server" TextMode="Number"></asp:TextBox>
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style18">Year Established</td>
            <td class="auto-style67" colspan="3">
                <asp:DropDownList ID="cmbYearEstablished" runat="server">
                    <asp:ListItem>2014</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">Number of Employees</td>
            <td class="auto-style55">
                <asp:TextBox ID="txtNumberOfEmployees" runat="server" Width="49px" TextMode="Number"></asp:TextBox>
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style22">Description</td>
            <td colspan="5" class="auto-style34">
                <asp:TextBox ID="txtDescription" runat="server" Height="36px" Width="440px"></asp:TextBox>
            </td>
            <td class="auto-style55"></td>
            
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
            
        </tr>
        <tr>
            <td class="auto-style18">Address 1</td>
            <td colspan="5" class="auto-style33">                <asp:TextBox ID="txtAddress1" runat="server" Width="437px"></asp:TextBox>
            </td>
            
            <td class="auto-style55">&nbsp;</td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style18">Address 2</td>
            <td colspan="5" class="auto-style33">                <asp:TextBox ID="txtAddress2" runat="server" Width="437px"></asp:TextBox>
            </td>
            
            <td class="auto-style55">
                <asp:TextBox ID="txtStateVal" runat="server"></asp:TextBox>
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style70">Country</td>
            <td class="auto-style71" colspan="3">&nbsp;<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:conBizUser %>" SelectCommand="SELECT [CountryID], [CountryName] FROM [Country] ORDER BY [CountryID]"></asp:SqlDataSource>
&nbsp;<asp:DropDownList ID="Country" runat="server" DataSourceID="SqlDataSource2" DataTextField="CountryName" DataValueField="CountryID" Height="16px" Width="180px">
                    <asp:ListItem Value="1">USA</asp:ListItem>
                    <asp:ListItem Value="2">UK</asp:ListItem>
                    <asp:ListItem Value="3">India</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="auto-style72"></td>
            <td class="auto-style73">State</td>
            <td class="auto-style74">                
                <asp:DropDownList ID="txtState" runat="server" DataSourceID="sqlStateList" DataTextField="StateName" DataValueField="StateID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="sqlStateList" runat="server" ConnectionString="<%$ ConnectionStrings:conBizUser %>" SelectCommand="SELECT [StateID], [StateName] FROM [State] ORDER BY [StateCode]"></asp:SqlDataSource>
            </td>
            <td class="auto-style75"></td>
            <td class="auto-style76">Zip</td>
            <td class="auto-style77">
                <asp:TextBox ID="txtZip" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style18">County</td>
            <td class="auto-style67" colspan="3">
                <asp:DropDownList ID="cmbCounty" runat="server" DataSourceID="SqlDataSrcCounty" DataTextField="CountyID" DataValueField="CountyID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSrcCounty" runat="server" ConnectionString="<%$ ConnectionStrings:conBizUser %>" SelectCommand="SELECT [CountyID], [County], [StateID] FROM [County] ORDER BY [County]"></asp:SqlDataSource>
            </td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">City</td>
            <td class="auto-style55">
                <asp:DropDownList ID="txtCity" runat="server" DataSourceID="SqlDataSourceCity" DataTextField="CityName" DataValueField="CityID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSourceCity" runat="server" ConnectionString="<%$ ConnectionStrings:conBizUser %>" SelectCommand="SELECT DISTINCT [CityID], [CityName], [CountyID] FROM [City] ORDER BY [CityID]"></asp:SqlDataSource>
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style18">Reason for Selling</td>
            <td colspan="5" class="auto-style33">
                <asp:TextBox ID="txtReasonSelling" runat="server" Width="436px"></asp:TextBox>
            </td>
            
            <td class="auto-style55">
                <asp:TextBox ID="txtCity1" runat="server"></asp:TextBox>
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style27">Franchise?</td>
            <td class="auto-style68">
                <asp:CheckBox ID="chkIsFranchise" runat="server" />
            </td>
            <td class="auto-style68"></td>
            <td class="auto-style69"></td>
            <td class="auto-style79"></td>
            <td class="auto-style30">Relocatable?</td>
            <td class="auto-style54">
                 <asp:CheckBox ID="chkIsRelocatable" runat="server" />
            </td>
            <td class="auto-style42"></td>
            <td class="auto-style44"></td>
            <td class="auto-style40"></td>
        </tr>
        <tr>
            <td class="auto-style18">Asset Sale?</td>
            <td class="auto-style67" colspan="3">
                <asp:CheckBox ID="chkIsAssetSale" runat="server" />
            </td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">Owner Financing Available?</td>
            <td class="auto-style55">
                <asp:CheckBox ID="chkIsOwnerFinancingAvail" runat="server" />
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">Home Based?</td>
            <td class="auto-style46">
                <asp:CheckBox ID="chkIsHomeBased" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="auto-style18">Real Estate Included?</td>
            <td class="auto-style67" colspan="3">
                <asp:CheckBox ID="chkIsRealEstateIncluded" runat="server" />
            </td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">Real Estate Available?</td>
            <td class="auto-style55">
                <asp:CheckBox ID="chkIsRealEstateAvailable" runat="server" />
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">Absentee Run?</td>
            <td class="auto-style46">
                <asp:CheckBox ID="chkIsAbsenteeRun" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="auto-style18">Training and Support?</td>
            <td class="auto-style67" colspan="3">
             <asp:CheckBox ID="chkIsTrainingSupport" runat="server" />
            </td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">Partnership Available?</td>
            <td class="auto-style55">
                <asp:CheckBox ID="chkIsParternshipAvailable" runat="server" />
            </td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">FSBO?</td>
            <td class="auto-style46">
                <asp:CheckBox ID="chkIsFSBO" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="auto-style18">Broker Co-op?</td>
            <td class="auto-style67" colspan="3">
                 <asp:CheckBox ID="chkIsBrokerCoOp" runat="server" /></td>
            <td class="auto-style78">&nbsp;</td>
            <td class="auto-style66">&nbsp;</td>
            <td class="auto-style55">
                &nbsp;</td>
            <td class="auto-style51">&nbsp;</td>
            <td class="auto-style65">&nbsp;</td>
            <td class="auto-style46">&nbsp;</td>
        </tr>

            <tr>
                <td class="auto-style18">&nbsp;</td>
                <td class="auto-style67" colspan="3">&nbsp;</td>
                <td class="auto-style78">&nbsp;</td>
                <td class="auto-style66">
                    <asp:Button ID="btnConfirm" runat="server" Text="Confirm" OnClick="btnConfirm_Click" />
                </td>
                <td class="auto-style55">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="FillSampleData" />
                </td>
                <td class="auto-style51">&nbsp;</td>
                <td class="auto-style65">&nbsp;</td>
                <td class="auto-style46">&nbsp;</td>
            </tr>

    </table>
    </asp:Panel>
    
</asp:Content>
